<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:a4j="http://richfaces.org/a4j"
	template="/pages/templates/templateMain.xhtml">

	<ui:param name="browser_tab_title" value="Summary" />
	<ui:param name="page_title" value="Service summary" />

	<ui:define name="content">
		<h:form id="summaryForm">
			<p:panel toggleable="true">
				<f:facet name="header">
					<h:outputText value="Basic info" />
				</f:facet>


				<h:panelGrid columns="2" columnClasses="column" cellpadding="5">
					<h:outputText value="Name: " />
					<h:outputText value="#{serviceprofile.name}" style="font-weight:bold"/>

					<h:outputText value="Description: " />
					<h:outputText value="#{serviceprofile.description}" style="font-weight:bold"/>
				</h:panelGrid>
			</p:panel>
			<br />

			<p:panel toggleable="true">
				<f:facet name="header">
					<h:outputText value="Services" />
				</f:facet>
				<p:dataTable value="#{selectedServices}" var="srvc" rows="15"
					emptyMessage="No Data" paginator="true" paginatorPosition="bottom">

					<p:column sortBy="#{srvc.name}" filterBy="#{srvc.name}">
						<f:facet name="header">
							<h:outputText value="Name" />
						</f:facet>
						<h:outputText value="#{srvc.name}" />
					</p:column>

					<p:column sortBy="#{srvc.description}"
						filterBy="#{srvc.description}">
						<f:facet name="header">
							<h:outputText value="Description" />
						</f:facet>
						<h:outputText value="#{srvc.description}" />
					</p:column>

				</p:dataTable>

			</p:panel>
			<br/>
			<p:panel toggleable="true">
				<f:facet name="header">
					<h:outputText value="Resources" />
				</f:facet>
				<h:panelGroup id="resourcesPanel">
					<ui:include src="/pages/resource/resourceDataTable.xhtml">
						<ui:param name="resourceList" value="#{serviceprofile.resources}" />
					</ui:include>
				</h:panelGroup>
			</p:panel>

			<p:commandButton value="Cancel" action="cancel" immediate="true"
				ajax="false" />
			<p:commandButton value="Done" action="done" ajax="false" />


		</h:form>
	</ui:define>
</ui:composition>